package com.springboot.Exception;

import com.springboot.enums.enumOa;

public class UserException extends RuntimeException{
    private String code;

    public UserException(enumOa enumoa) {
        super(enumoa.getMsg());
        this.code = enumoa.getCode();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
